package com.erp.erp_entitys.business.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 出口业务-报价产品配件表(OfferProductParts)实体类
 *
 * @author lst
 * @since 2021-01-09 18:47:20
 */
public class OfferProductPartsEntity implements Serializable {
    private static final long serialVersionUID = 689451541140612160L;
    /**
    * 主键
    */
    private Integer id;
    /**
    * 父id
    */
    private Integer parentId;
    /**
    * 产品明细id
    */
    private Integer productDetailId;
    /**
    * 规格编码
    */
    private String specNo;
    /**
    * 配件编码
    */
    private String partsCode;
    /**
    * 中文名称
    */
    private String productCname;
    /**
    * 英文名称
    */
    private String productEname;
    /**
    * 成品比例
    */
    private BigDecimal proportionFinishedProducts;
    /**
    * 配件比例
    */
    private BigDecimal partsFinishedProducts;
    /**
    * 配件数量
    */
    private BigDecimal partsAmount;
    /**
    * 毛重
    */
    private BigDecimal grossWeight;
    /**
    * 净重
    */
    private BigDecimal netWeight;
    /**
    * 体积
    */
    private BigDecimal bulk;
    /**
    * 产品类型(1:成品 2:配件 默认为配件)
    */
    private Integer productType;
    /**
    * 创建时间
    */
    private Date createDate;
    /**
    * 修改时间
    */
    private Date modifyTime;
    /**
    * 是否有效(0:无效 1:有效)
    */
    private Integer valid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getProductDetailId() {
        return productDetailId;
    }

    public void setProductDetailId(Integer productDetailId) {
        this.productDetailId = productDetailId;
    }

    public String getSpecNo() {
        return specNo;
    }

    public void setSpecNo(String specNo) {
        this.specNo = specNo;
    }

    public String getPartsCode() {
        return partsCode;
    }

    public void setPartsCode(String partsCode) {
        this.partsCode = partsCode;
    }

    public String getProductCname() {
        return productCname;
    }

    public void setProductCname(String productCname) {
        this.productCname = productCname;
    }

    public String getProductEname() {
        return productEname;
    }

    public void setProductEname(String productEname) {
        this.productEname = productEname;
    }

    public BigDecimal getProportionFinishedProducts() {
        return proportionFinishedProducts;
    }

    public void setProportionFinishedProducts(BigDecimal proportionFinishedProducts) {
        this.proportionFinishedProducts = proportionFinishedProducts;
    }

    public BigDecimal getPartsFinishedProducts() {
        return partsFinishedProducts;
    }

    public void setPartsFinishedProducts(BigDecimal partsFinishedProducts) {
        this.partsFinishedProducts = partsFinishedProducts;
    }

    public BigDecimal getPartsAmount() {
        return partsAmount;
    }

    public void setPartsAmount(BigDecimal partsAmount) {
        this.partsAmount = partsAmount;
    }

    public BigDecimal getGrossWeight() {
        return grossWeight;
    }

    public void setGrossWeight(BigDecimal grossWeight) {
        this.grossWeight = grossWeight;
    }

    public BigDecimal getNetWeight() {
        return netWeight;
    }

    public void setNetWeight(BigDecimal netWeight) {
        this.netWeight = netWeight;
    }

    public BigDecimal getBulk() {
        return bulk;
    }

    public void setBulk(BigDecimal bulk) {
        this.bulk = bulk;
    }

    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }


    /**
     * 重写toString
     */
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("OfferProductPartsEntity").append('[')
                .append("id=")
                .append(id)
                .append(",parentId=")
                .append(parentId)
                .append(",productDetailId=")
                .append(productDetailId)
                .append(",specNo=")
                .append(specNo)
                .append(",partsCode=")
                .append(partsCode)
                .append(",productCname=")
                .append(productCname)
                .append(",productEname=")
                .append(productEname)
                .append(",proportionFinishedProducts=")
                .append(proportionFinishedProducts)
                .append(",partsFinishedProducts=")
                .append(partsFinishedProducts)
                .append(",partsAmount=")
                .append(partsAmount)
                .append(",grossWeight=")
                .append(grossWeight)
                .append(",netWeight=")
                .append(netWeight)
                .append(",bulk=")
                .append(bulk)
                .append(",productType=")
                .append(productType)
                .append(",createDate=")
                .append(createDate)
                .append(",modifyTime=")
                .append(modifyTime)
                .append(",valid=")
                .append(valid)
                .append(']');
        return sb.toString();
    }
}